﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="quanly_sanpham.ascx.cs" Inherits="eDream.admin.quanly_sanpham" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div style="margin-bottom: 20px; width: 170px; float: left">
        <dx:ASPxButton ID="btnDachon" runat="server" Text="Hiễn thị trang chủ" Theme="iOS" AutoPostBack="false">
             <ClientSideEvents Click="function(s, e) {cpanl.PerformCallback('save1');}" />
        </dx:ASPxButton>
    </div>
    <div style="margin-bottom: 20px; float: left;">
        <dx:ASPxButton ID="btnTatca" runat="server" Text="Hiễn thị trang sản phẩm" Theme="iOS" AutoPostBack="false">
            <ClientSideEvents Click="function(s, e) {cpanl.PerformCallback('save2');}" />
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <div style="margin-bottom: 20px; width: 100px; float: left">
        Nhom
        </div>
    <div style="margin-bottom: 20px; width: 170px; float: left">
    <dx:ASPxComboBox ID="cbx" runat="server" ValueType="System.String"></dx:ASPxComboBox>
        </div>
    <dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" ClientInstanceName="cpanl" runat="server" Width="100%" OnCallback="ASPxCallbackPanel1_Callback">
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                <dx:ASPxLabel ID="lbThongbao" runat="server" Text=""></dx:ASPxLabel>
                <div class="Clear"></div>
                <dx:ASPxGridView ID="grvpResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False"
                    KeyFieldName="ID" OnLoad="grvpResult_Load">
                    <Columns>
                        <dx:GridViewDataTextColumn Caption=" " Name="check" Width="10px" VisibleIndex="0">
                            <DataItemTemplate>
                                <dx:ASPxCheckBox ID="chkCheck" runat="server"></dx:ASPxCheckBox>
                                <asp:HiddenField ID="hdfUserID" runat="server" Value='<%#Eval("ID") %>' />

                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataImageColumn FieldName="image" Caption="Hình ảnh" VisibleIndex="0">
                            <CellStyle Wrap="True"></CellStyle>
                            <DataItemTemplate>
                                <img src='<%#String.Format("Image/product/{0}",Eval("image")) %>' width="64" height="64" alt="" />
                            </DataItemTemplate>
                        </dx:GridViewDataImageColumn>

                        <dx:GridViewDataTextColumn FieldName="iProName" Caption="Tên sản phẩm" VisibleIndex="1">
                            <CellStyle Wrap="True"></CellStyle>
                             <DataItemTemplate>
                                <a href='Canhan.aspx?page=them-san-pham&&k=<%#Eval("ID") %>'><%#Eval("iProName") %></a>
                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="iDongiamoi" Caption="Giá bán" VisibleIndex="2" PropertiesTextEdit-DisplayFormatString="c0">
                            <CellStyle Wrap="True"></CellStyle>
                           
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Chietkhau" Caption="Chiết khấu" VisibleIndex="3">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataColumn FieldName="goiy" Caption="Quảng cáo" VisibleIndex="4">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataColumn>
                        <dx:GridViewDataColumn FieldName="trangchu" Caption="Trang chủ" VisibleIndex="5">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataColumn>
                        <dx:GridViewDataColumn FieldName="iflag" Caption="Trang sản phẩm" VisibleIndex="6">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataColumn>
                       

                    </Columns>
                    <SettingsBehavior AllowSort="true" AllowFocusedRow="true" />
                    <Settings ShowFilterRow="true" />

                    <SettingsPager PageSizeItemSettings-ShowAllItem="true" Mode="ShowAllRecords"></SettingsPager>
                </dx:ASPxGridView>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxCallbackPanel>



    
</div>